package org.dean.webapps.projectname.presentation.commands.user;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: dean
 * Date: 8/23/11
 * Time: 11:44 AM
 * To change this template use File | Settings | File Templates.
 */
public class UserProfileOutCmd {

    protected Long id;
    protected String firstName;
    protected String lastName;
    protected String userName;
    protected String email;
    protected Integer loginNum;
    protected long created;
    protected long modified;
    protected String sex;
    protected String passport;
    protected String address;
    protected long birthday;
    protected Integer rewardPoints;


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getLoginNum() {
        return loginNum;
    }

    public void setLoginNum(Integer loginNum) {
        this.loginNum = loginNum;
    }

    public long getCreated() {
        return created;
    }

    public void setCreated(long created) {
        this.created = created;
    }
    public void setCreated(Date created) {
        if(created!=null){
            this.created = created.getTime();
        }
    }
    public long getModified() {
        return modified;
    }

    public void setModified(long modified) {
        this.modified = modified;
    }
    public void setModified(Date modified) {
        if(modified!=null){
            this.modified = modified.getTime();
        }
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassport() {
        return passport;
    }

    public void setPassport(String passport) {
        this.passport = passport;
    }


    public long getBirthday() {
        return birthday;
    }

    public void setBirthday(long birthday) {
        this.birthday = birthday;
    }

    public void setBirthday(Date birthday) {
        if(birthday!=null){
            this.birthday = birthday.getTime();
        }
    }

    public Integer getRewardPoints() {
        return rewardPoints;
    }

    public void setRewardPoints(Integer rewardPoints) {
        this.rewardPoints = rewardPoints;
    }
}